<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="moduleEdit" />
	<script type="text/javascript">
		$(document).ready(function() {
			$("#levelName").focus();
			$("#brandLevelForm").validate({
				submitHandler: function(form){
					Oosp_Loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<div class="Report_f">
				  <div class="Report_f_1">
				    <div class="Report_f_title_1">新增条款信息
				    </div>
				  </div>
				  <div class="panel-body">
					<form:form id="brandLevelForm" modelAttribute="contractArticle" action="${contextPath}/sys/base/article/save" method="post" class="form-horizontal" role="form">
						<form:hidden path="id"/>
						<tags:message content="${message}"/>
						<div class="form-group">
							<label for="levelName" class="col-sm-3 control-label">条款编码:</label>
							<div class="col-sm-4">
								<form:input id="article" path="article" maxlength="20" class="form-control required"/>
							</div>
						</div>
						<div class="form-group">
							<label for="levelName" class="col-sm-3 control-label">条款名称:</label>
							<div class="col-sm-4">
								<form:input id="articleName" path="articleName" maxlength="20" class="form-control required"/>
							</div>
						</div>
						<div class="form-group">
							<label for="levelName" class="col-sm-3 control-label">条款的属性:</label>
							<div class="col-sm-4">
								<form:input id="articleProperty" path="articleProperty" maxlength="20" class="form-control required"/>
							</div>
						</div>
						<div class="form-group">
							<label for="levelName" class="col-sm-3 control-label">条款属性的名称:</label>
							<div class="col-sm-4">
								<form:input id="articlePropertyName" path="articlePropertyName" maxlength="20" class="form-control required"/>
							</div>
						</div>
						<div class="form-group">
							<label for="remark" class="col-sm-3 control-label">是否临时扣费:</label>
							<div class="col-sm-4">
								<ossp:radio dictType="COMMN_ITEM_TYPE" id="isArticle" name="isArticle"></ossp:radio>
							</div>
						</div>
						<div class="form-group">
						  <div class="col-sm-offset-3 col-sm-10">
						    <input class="btn btn-primary" type="submit" value="保 存"/>
							<input class="btn btn-default" type="button" value="返 回" onclick="history.go(-1)"/>
						  </div>
						</div>
					</form:form>
				  </div>
				</div>
</body>
</html>